* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
authorDaniel Colascione <dan.colascione@gmail.com>
Mon, 25 Apr 2011 00:31:41 +0000 (17:31 -0700)
committerDaniel Colascione <dan.colascione@gmail.com>
Mon, 25 Apr 2011 00:31:41 +0000 (17:31 -0700)
correct match group (bug#8438).

lisp/ChangeLog
lisp/progmodes/cc-engine.el

index 94e172cb010c7257fcc34c05523b9225352817f7..1799877dc96b6685f91c7d54e5af2d7210dfb769 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-24  Daniel Colascione <dan.colascione@gmail.com>
+
+       * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Use
+       correct match group (bug#8438).
+
 2011-04-24  Chong Yidong  <cyd@stupidchicken.com>
 
        * emacs-lisp/package.el (package-built-in-p): Fix typo.
index 5ef12300195d98c0fc6ad1d98f9835fddcb3dced..0eec54fab6ffee47ba302354b86b7c6ab3e5b986 100644 (file)
@@ -6475,7 +6475,7 @@ comment at the start of cc-engine.el for more info."
       ;; `c-font-lock-declarators'.)
       (while (and (looking-at c-type-decl-prefix-key)
                  (if (and (c-major-mode-is 'c++-mode)
-                          (match-beginning 2))
+                          (match-beginning 3))
                      ;; If the second submatch matches in C++ then
                      ;; we're looking at an identifier that's a
                      ;; prefix only if it specifies a member pointer.